﻿using Payroll.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.BusinessLogic.Devices
{
    public partial interface IOrderService
    {
        /// <summary>
        /// Saves the specified order.
        /// </summary>
        /// <param name="order">The order.</param>
        /// <returns>ID of Order</returns>
        int Save(Order order);
        /// <summary>
        /// Saves the specified list.
        /// </summary>
        /// <param name="List">The list.</param>
        void Save(List<Order> List);
        void Delete(string orderId);
        /// <summary>
        /// Gets all order.
        /// </summary>
        /// <param name="From">From.</param>
        /// <param name="To">To.</param>
        /// <param name="Distributor">The distributor.</param>
        /// <param name="pageSize">Size of the page.</param>
        /// <param name="pageIndex">Index of the page.</param>
        /// <returns>List of Order</returns>
        PagedList<Order> GetAllOrder(DateTime? From, DateTime? To, string Distributor, int pageSize, int pageIndex);
        /// <summary>
        /// Gets the order device.
        /// </summary>
        /// <param name="OrderID">The order ID.</param>
        /// <returns></returns>
        PagedList<OrderDevice> GetOrderDevice(int OrderID);
        Order GetById(int id);
    }
}
